﻿using System.ComponentModel.DataAnnotations;

namespace ProgrammingEducationSystem.Dto
{
    public class UserForRegisterDto
    {
        [Required(ErrorMessage = "用户名不可为空")]
        public string UserName { get; set; }
        [Required(ErrorMessage = "密码不可为空")]
        public string Password { get; set; }
        [Required(ErrorMessage = "手机号不可为空")]
        public string PhoneNumber { get; set; }
        public string? Avatar { get; set; }
    }
}
